<%@ page language="java" contentType="text/html; charset=UTF-8" trimDirectiveWhitespaces="true"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<c:set var="contextPath" value="${pageContext.request.contextPath}"/>
<div class="pageContent">
<form method="post" action="${contextPath }/management/purchase/materials/update" class="required-validate pageForm" onsubmit="return validateCallback(this, dialogReloadNavTab);">
	<input type="hidden" name="id" value="${purchaseMaterials.id}"/>
	<div class="pageFormContent" layoutH="58">
	<p>
		<label>采购单号：</label>
		<input type="text" name="danhao" size="32" maxlength="255" value="${purchaseMaterials.danhao}" class="required validate[required]"/>
	</p>
	<p>
		<label>要求到货日期：</label>
		<input type="text" name="yqriqi" class="date validate[required]" readonly="readonly" style="float:left;" value="<fmt:formatDate value="${purchaseMaterials.yqriqi}" pattern="yyyy-MM-dd HH:mm:ss"/>"/>
		<a class="inputDateButton" href="javascript:;" style="float:left;">选择</a>
	</p>
	<p>
		<label>实际到货日期：</label>
		<input type="text" name="sjriqi" class="date validate[required]" readonly="readonly" style="float:left;" value="<fmt:formatDate value="${purchaseMaterials.sjriqi}" pattern="yyyy-MM-dd HH:mm:ss"/>"/>
		<a class="inputDateButton" href="javascript:;" style="float:left;">选择</a>
	</p>
	<p>
		<label>供应商：</label>
		<input type="text" name="gongyinshang" size="32" maxlength="255" value="${purchaseMaterials.gongyinshang}" class="required validate[required]"/>
	</p>
	<p>
		<label>材料名称：</label>
		<input type="text" name="mingcheng" size="32" maxlength="255" value="${purchaseMaterials.mingcheng}" class="required validate[required]"/>
	</p>
	<p>
		<label>材料规格：</label>
		<input type="text" name="guige" size="32" maxlength="255" value="${purchaseMaterials.guige}" class="required validate[required]"/>
	</p>
	<p>
		<label>数量(R)：</label>
		<input type="text" name="shuliang" size="32" maxlength="11" value="${purchaseMaterials.shuliang}" class="required validate[required]"/>
	</p>
	<p>
		<label>采购m数：</label>
		<input type="text" name="caigoushu" size="32" maxlength="11" value="${purchaseMaterials.caigoushu}" class="required validate[required]"/>
	</p>
	<p>
		<label>到货m数：</label>
		<input type="text" name="daohuoshu" size="32" maxlength="11" value="${purchaseMaterials.daohuoshu}" class="required validate[required]"/>
	</p>
	<p>
		<label>总平米数量：</label>
		<input type="text" name="total" size="32" maxlength="11" value="${purchaseMaterials.total}" class="required validate[required]"/>
	</p>
	</div>
	
	<div class="formBar">
		<ul>
			<li><div class="button"><div class="buttonContent"><button type="submit">确定</button></div></div></li>
			<li><div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div></li>
		</ul>
	</div>
</form>
</div>